using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Cysharp.Threading.Tasks;
namespace LitTools
{
    public partial class AssetsManager : Singleton<AssetsManager>, ISingleton
    {
        int ISingleton.Order => 1;

        void ISingleton.OnDestroy()
        {
            
        }

        void ISingleton.OnInit()
        {
            
        }

        void ISingleton.OnUpdate()
        {
            
        }
    }

    public partial class AssetsManager
    {
        public async UniTask<T> LoadAsset<T>(string path) where T : UnityEngine.Object
        {
            var asset = await Resources.LoadAsync<T>(path);
            return asset as T;
        }
    }
}